﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Collections;
//using LitJson;
using System.Text;
using System.Data;
//using web.BaseClass;

public class byblink : IHttpHandler
{

    public void ProcessRequest(HttpContext context)
    {
        //string dbselect = context.Request["cs"];
        //string keyword = context.Request["kw"].ToString();
        //DataTable dt = DataDB.BybLinkByEditor(dbselect, keyword);
        //List<Hashtable> hashlist = new List<Hashtable>();
        //for (int i = 0; i < dt.Rows.Count; i++)
        //{
        //    Hashtable hash = new Hashtable();
        //    hash["name"] = dt.Rows[i]["name"].ToString();//"linkname" + i.ToString();
        //    hash["link"] = dt.Rows[i]["link"].ToString(); //"这是一个链接" + i.ToString();
        //    hashlist.Add(hash);
        //}
        //context.Response.AddHeader("Content-Type", "text/html; charset=UTF-8");
        //context.Response.Write(JsonMapper.ToJson(hashlist));
        //context.Response.End();
    }

    public bool IsReusable
    {
        get
        {
            return false;
        }
    }
}
